<?php

class Game_Form_AddGame extends Zend_Form {

    public function init() {
        $name = new Zend_Form_Element_Text("name");
        $name->addFilter('StripTags');
        $name->addFilter('StringTrim')
                ->addValidator('NotEmpty');
        $name->setLabel("Nom");

        $price = new Zend_Form_Element_Text("price");
        $price->setLabel("Prix");
        $description = new Zend_Form_Element_Textarea("description");
        $description->setLabel("Description");

        $submit = new Zend_Form_Element_Submit('submit');
        $this->addElements(array($name, $price, $description, $submit));
    }

}

